import http from '../utils/http.js'

export const apiGetVideoList = data => http.request('https://api.apiopen.top/videoRecommend?id=127397')

// 推荐 视频列表
export const apiGetRecommendList = () => http.get('/user/user/work/recommend')
// 关注 视频列表
export const apiGetFocusOnList = (data) => http.get('/user/user/work/attention')
// 关注 用户列表(无关注视频推荐用户关注)
export const apiGetNotFocusList = () => http.get('/user/user/info/recommend')

// 作品详情(视频地址)
export const apiGetVideoUrl = (data) => http.get('/user/user/work/view',data)

// 广告详情(视频地址)
export const apiGetAdUrl = (data) => http.get('/user/ad/view',data)



// 点赞
export const apiPostLike = (data) => http.post('/user/user/like/create',data)
// 点赞取消
export const apiPostUnLike = (data) => http.post('/user/user/like/cancel',data)

// 关注
export const apiPostFocusOn = (data) => http.post('/user/user/fans/create',data)
// 关注取消 - (用户详情取关需要)
export const apiPostUnFocusOn = (data) => http.post('/user/user/fans/cancel',data)

// 评论我的列表
export const apiGetCommentList = (data) => http.get('/user/user/comment/index',data)
// 发送评论
export const apiPostSendComment = (data) => http.post('/user/user/comment/create',data)
